<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PostDataObject"
    targetNamespace="http://www.tinyforum.com/PostDataObject.xsd"
    elementFormDefault="qualified"
    xmlns="http://www.tinyforum.com/PostDataObject.xsd"
    xmlns:mstns="http://www.tinyforum.com/PostDataObject.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:rdo ="http://www.tinyforum.com/ReplyDataObject.xsd"
    xmlns:udo="http://www.tinyforum.com/AccountDataObject.xsd"           
>
	<xs:annotation>
		<xs:documentation>Represents the data object for Posts.</xs:documentation>
	</xs:annotation>
  
  <xs:import namespace="http://www.tinyforum.com/ReplyDataObject.xsd" schemaLocation=".\ReplyDataObject.xsd"/>
  <xs:import namespace="http://www.tinyforum.com/AccountDataObject.xsd" schemaLocation=".\AccountDataObject.xsd"/>
  
	<xs:complexType name="PostDataObject">
		<xs:sequence >
			<xs:element name="ID" minOccurs="0" maxOccurs="1" nillable="true" type="xs:long"></xs:element>
			<xs:element name="Title" minOccurs="1" maxOccurs="1" nillable="false" type="xs:string"></xs:element>
			<xs:element name="Content" minOccurs="1" maxOccurs="1" nillable="false" type="xs:string"></xs:element>
			<xs:element name="DateCreated" minOccurs="0" maxOccurs="1" nillable="true" type="xs:dateTime"></xs:element>
			<xs:element name="DateModified" minOccurs="0" maxOccurs="1" nillable="true" type="xs:dateTime"></xs:element>
			<xs:element name="TopicID" minOccurs="1" maxOccurs="1" nillable="false" type="xs:long"></xs:element>
      <xs:element name="User" minOccurs="1" maxOccurs="1" nillable="false" type="udo:AccountDataObject"></xs:element>
      <xs:element name="LatestReply" minOccurs="0" maxOccurs="1" nillable="true" type="rdo:ReplyDataObject"></xs:element>
      <xs:element name="TotalReplies" minOccurs="0" maxOccurs="1" nillable="true" type="xs:int"></xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
